package com.redxiii.util.cli;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class CmdLineReader implements Runnable {
	
	public StringBuilder stream = new StringBuilder();
	
	public void run() {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			while(true) {
				if (reader.ready()) {
					stream.append(reader.readLine());
					break;
				} else {
					Thread.sleep(500);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (InterruptedException e) {
		}
	}
}
